import request from '@/utils/request'

// 查询处置终端车辆进场明细列表
export function listApproach(query) {
  return request({
    url: '/disposal/approach/list',
    method: 'get',
    params: query
  })
}

// 查询处置终端车辆进场明细详细
export function getApproach(id) {
  return request({
    url: '/disposal/approach/' + id,
    method: 'get'
  })
}

// 新增处置终端车辆进场明细
export function addApproach(data) {
  return request({
    url: '/disposal/approach',
    method: 'post',
    data: data
  })
}

// 修改处置终端车辆进场明细
export function updateApproach(data) {
  return request({
    url: '/disposal/approach',
    method: 'put',
    data: data
  })
}

// 删除处置终端车辆进场明细
export function delApproach(id) {
  return request({
    url: '/disposal/approach/' + id,
    method: 'delete'
  })
}
